Skip to main content

mobileAdSetTopLeft

Type

command

Summary

Sets the topLeft position of an ad.

Syntax

mobileAdSetTopLeft <adName>, <topLeft>

Description

Use the mobileAdSetTopLeft command to set the top left postition of an ad.

The mobileAdSetTopLeft command places the named ad with its top left corner at the specified point.

Parameters

NameTypeDescription

adName

The name of ad (as specified in mobileAdCreate).

topLeft

The coordinates at which the top left corner of the add should be placed. Use parentheses to pass 2 comma separated values as a single parameter.

Examples

mobileAdSetTopLeft "my ad", (10,150) -- the brackets here are to make sure the top left is passed as a single parameter

command: mobileAdCreate, mobileAdDelete, mobileAdSetVisible, mobileAdRegister

function: mobileAdGetTopLeft, mobileAdGetVisible

message: adLoaded, adLoadFailed, adClicked

property: topLeft

Compatibility and Support

Introduced

LiveCode 5.5

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?